import request from '@/utils/request'

// 学生列表
export function fetchStudentList(query) {
  return request({
    url: '/XinMiao_MS/student/list',
    method: 'get',
    params: query
  })
}

// 具体学生信息
export function fetchStudent(id) {
  return request({
    url: '/XinMiao_MS/student/detail',
    method: 'get',
    params: { id }
  })
}


// 创建学生
export function createStudent(data) {
  return request({
    url: '/XinMiao_MS/student/create',
    method: 'post',
    data
  })
}

// 更新学生信息
export function updateStudent(data) {
  return request({
    url: '/XinMiao_MS/student/update',
    method: 'post',
    data
  })
}
